package com.hunt.model.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author sjs
 * @className
 * @description
 * @date 2020/9/21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class LecturerVideo implements Serializable {

    private String id = "0";
    private String title = "0";
    private String description = "0";
    private String videoUrl = "0";
    private String videoType = "0";
    private String lecturer = "0";
    private String cover = "0";
    private Date releaseDate;
    private Integer type;
    private String appVideoUrl;

    public String getLecturerVideoReleaseDate() {
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String s = format.format(releaseDate);
        return s;
    }
}
